package com.ruoyi.stock.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存盘点明细对象 stock_inventory_detail
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class StockInventoryDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 盘点ID */
    @Excel(name = "盘点ID")
    private Long checkId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 系统库存数量 */
    @Excel(name = "系统库存数量")
    private Long systemQuantity;

    /** 实际盘点数量 */
    @Excel(name = "实际盘点数量")
    private Long actualQuantity;

    /** 差异数量 */
    @Excel(name = "差异数量")
    private Long difference;

    /** 调整数量 */
    @Excel(name = "调整数量")
    private Long adjustQuantity;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }

    public void setCheckId(Long checkId) 
    {
        this.checkId = checkId;
    }

    public Long getCheckId() 
    {
        return checkId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setSystemQuantity(Long systemQuantity) 
    {
        this.systemQuantity = systemQuantity;
    }

    public Long getSystemQuantity() 
    {
        return systemQuantity;
    }

    public void setActualQuantity(Long actualQuantity) 
    {
        this.actualQuantity = actualQuantity;
    }

    public Long getActualQuantity() 
    {
        return actualQuantity;
    }

    public void setDifference(Long difference) 
    {
        this.difference = difference;
    }

    public Long getDifference() 
    {
        return difference;
    }

    public void setAdjustQuantity(Long adjustQuantity) 
    {
        this.adjustQuantity = adjustQuantity;
    }

    public Long getAdjustQuantity() 
    {
        return adjustQuantity;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("checkId", getCheckId())
            .append("productId", getProductId())
            .append("systemQuantity", getSystemQuantity())
            .append("actualQuantity", getActualQuantity())
            .append("difference", getDifference())
            .append("adjustQuantity", getAdjustQuantity())
            .append("remark", getRemark())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
